(function() {
   function ZkuMain() {
      var _ = this;
      this.home = {
        swiper: () => {
        //     $('.navs-ul').on('click',function(e) {
        //         var dom = e.target;
        //         console.log(dom)
        //         if(dom.nodeName == "A") {
        //             dom.nodeName.parentNode().find('a').removeClass('active')
        //         //     // dom.addClass('active')
        //         }
        //     })
        }
      },
      this.news = {
         detail: () => {
            $('.p-more').on('click',function(){
               location.href = '../html/new_detail.html'
               
            })
         }
      },
      this.product = {
         productDetail: () => {
            $('.product-show-list').on('click', function (e) {
               console.log(e)
               var dom = e.target;
               console.log(dom.nodeName)
               if (dom.nodeName == 'IMG' || dom.nodeName == 'DIV' || dom.nodeName == 'P'){
                   location.href = '../html/product_detail.html'
               }
           })
         }
      }
   }
   window.ZkuMain = ZkuMain;
})(window,document)